<template>
  <div>
    <div><br><br>
      <el-input style="width: 800px" placeholder="请输入私钥" v-model="privateKey">
        <template slot="prepend">私钥：</template>
      </el-input><br>
      <el-input style="width: 585px" placeholder="请输入密码" v-model="password">
        <template slot="prepend">密码：</template>
      </el-input>
      <el-button type="primary" @click="exportAccountByPrivateKey">私钥密码导出keyStore文件</el-button>
    </div><br><br>

  </div>
</template>

<script>
export default {
  name: "exportKeystore",
  data() {
    return {
      privateKey: '',
      password: '',
      exportInfo: '',
    }
  },
  methods: {
    //点击更新按钮请求账户列表
    exportAccountByPrivateKey() {
      //发送请求
      this.axios.post("/exportAccountByPrivateKey",{
        privateKey: this.privateKey,
        password: this.password
      }).then(res => {
        this.exportInfo = res.data;
      })
    },
  }

}
</script>

<style scoped>

</style>
